1. Using Ssh+rsyncYou only need to open the SSH service on the server side and start the rsync service in xinetd to useA. Incremental synchronizationrsync-av/src-dir/. [email protected]:/dest-dir/.B. Mirroring synchronizationRsync-av--delete/src-dir/. [email protected]:/dest-dir/.Features: Simple configuration, no need to configure rsyncd.conf profile, but requir
1.RSYNC: Remote sync, support local replication, or synchronize with other SSH and RSYNC hosts.Rsync remote synchronization and CP, SCP function basically consistent, the other two is to copy the source files, if there is new data added, using CP, SCP to the source file all the content is copied, and Rsync is on the ba
Tags: res rsync specifies create List start service technology RTP UIDI. Introduction of RSYNC ToolsRsync is a data-mirroring Backup tool under Unix-like systems, and--remote sync can be seen from the name of the software. Rsync is a file synchronization and data Transfer tool under the Linux system that uses the "rsync
Machine). We will run it once here. Next we will try again to save time.
2. Password-free SSH access
Since it is a scheduled backup of a job schedule, it cannot be said that you need to manually enter the password each time. Fortunately, ssh provides the key authentication method. Next, I want to implement a pair of authentication keys, which are placed on the M
Recently requested by the company, the need for remote transmission and backup of file data, wrote an article on the SSH, SCP and rsync application configuration of the whole process, may be too wordy, but mainly to want to do not miss each process in the case of this elaboration, I hope you can understand. Of course, there are many similar articles, this article only in the name of the individual to write,
Recently requested by the company, the need for remote transmission and backup of file data, wrote an article on the SSH, SCP and rsync application configuration of the whole process, may be too wordy, but mainly to want to do not miss each process in the case of this elaboration, I hope you can understand. Of course, there are many similar articles, this article only in the name of the individual to write,
/private key. Use the following rsync command to start synchronization:
# Rsync-v-a-z-e SSH -- delete/www/
In this command,-V indicates verbose;-A indicates synchronizing all files and folders;-Z indicates compressing data, which reduces the transmission traffic; -e ssh indi
1. Use rsync + ssh software for regular file backup and Incremental backup, but not for real-time backup, so the effect is not very good.Server A (ip: 2.2.2.135 ):[Root @ CentOS ~] # Ifconfig eth0 -- View IP addressesEth0 Link encap: Ethernet HWaddr 08: 00: 27: 56: AAInet addr: 2.2.2.135 Bcast: 2.20.255.255 Mask: 255.0.0.0Inet6 addr: fe80: a00: 27ff: fe56: aaaa/64 Scope: LinkUp broadcast running multicast m
information please refer to man rsync.
rsync Shell mode synchronization does not require a password method:Because it is in fact the way to go ssh, so in accordance with SSH to configure key to achieve rsync without password.I ha
Tags: rsync+inotify-tools+ssh implement mysql-bin log file real-time backup1, Environment: two CentOS computer direct connection, its server A's IP address is 192.168.1.124, Server B's IP address is 192.168.1.121.2. Requirement Software Installation (SSH system is installed by default):Server A:Yum Install rsync Inotif
Recently need to write a script to backup each server on the program to a designated server, originally thought to check the use of the rsync command 321 can be done, the results of the rsync command to support automatic login or to configure the service and parameters, and not sure the network said the configuration of the line, because all is a kind, However, there is no indication of the tail, so choose
form of backwards compatibility with the very weak security# Of/usr/bin/rsh. Their use is not recommended and the functionality# Will be removed when support for v1 protocol is removed.
# Shoshould sshd use. rhosts and. shosts for password less authentication.IgnoreRhosts yesRhostsAuthentication yes # enable
# Rhosts RSA Authentication is modified here.# For this to work you will also need host keys in/etc/ssh/ssh_known_hosts.# If the user on the cli
1. Perform rsync via SSH (password required)
Perform rsync through an SSH account (requiring a password) to mirror files synchronously to a remote server.The following example synchronizes the local/home/ramesh to the remote directory/backup/ramesh (server address 192.168.200.10).When you do the following, the server
In linux, ssh + rsyncssh remote login sftp file sharing is similar to ftpsshsecurefiletransferclientscp file sharing, which is similar to cpwww.2cto. comssh configuration file/etc/ssh/sshd_config # change PermitRootLoginyes to no... in linux, configure ssh + rsync ssh remote
directory -p Specify port number example can be used Crontab + SCP for remote backup crontab-e0 2 * * 0/usr/bin /scp-r [Emailprotected]:/web /backup/web Monday to Saturday incremental backup build NBsp;ssh key Let 2 hosts do not need password First host root generate public key copy to second host Gwyy home directory so the first host root connects to the
1.rsync and SSH differential remote sync command
Copy Code code as follows:
Command format:
#rsync [option] Source path target path
which
[option]:
A: Use archive mode, equal to-rlptgod, that is, maintain the original file permissions
Z: Compress data on transfer
V: Display to the screen
E: Use a remote shell program (you can use rsh
are connecting to an SSH server, the client software sends a request to the server requesting security verification with your key. After the server receives the request, first locate your public key on the server in your home directory and compare it to the private key you sent over. If two keys are identical, the ser
SSH is based on Key verification and accelerates SSH connection, and key verification ssh connection speed
Authentication Method for SSh service logon:
Password-based security verification
1. When the client initiates an
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.